package controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import service.MyService;
import service.Say;
@Controller
public class HelloDubbo {
	@Autowired
	private MyService myservice;
	@Autowired
	private Say say;
	@RequestMapping("/hello")
	@ResponseBody
	public String HelloDubbo(){
		return (String) myservice.callApp("SayImp","say");
	}
	@RequestMapping("/2")
	@ResponseBody
	public String HelloDubbo1(){
		return say.say();
	}
}
